﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace XXX.Models.GL
{
    ///<summary>
    ///
    ///</summary>
    public partial class GL_accvouch
    {
           public GL_accvouch(){
            nc_s = 0;
            nd_s = 0;
            nfrat = 0;
            mc_f = 0;
            md_f = 0;
            ibook = 0;
            idoc = -1;
            RowGuid = System.Guid.NewGuid().ToString();
            bFlagOut = false;
            bCusSupInput = true;
            bItemedit = true;
            bDeptedit = true;
            bPCSedit= true;
            bcodeedit = true;
            bvalueedit = true;
            bvouchmoneyhold = false;
            bvouchAddordele = false;
            bvouchedit = false;
            bdelete = false; 
    }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>     
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int i_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int iperiod {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string csign {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? isignseq {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? ino_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int inid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public DateTime dbill_date {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int idoc {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cbill {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccheck {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cbook {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_ibook_D AS 0
           /// Nullable:False
           /// </summary>           
           public byte ibook {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccashier {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public byte? iflag {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ctext1 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ctext2 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cdigest {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string ccode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? cexch_name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_md_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? md {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_mc_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? mc {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_md_f_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? md_f {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_mc_f_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? mc_f {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_nfrat_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal nfrat {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_nd_s_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? nd_s {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_nc_s_D AS 0
           /// Nullable:False
           /// </summary>           
           public decimal? nc_s {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? csettle {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? cn_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? dt_date {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cdept_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cperson_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccus_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string csup_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string citem_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string citem_class {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string? cname {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccode_equal {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public byte? iflagbank {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public byte? iflagPerson {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bdelete_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bdelete {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutaccset {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? ioutyear {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutsysname {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutsysver {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? doutbilldate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_ioutperiod_D AS 0
           /// Nullable:True
           /// </summary>           
           public byte? ioutperiod {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_coutsign_D AS ''
           /// Nullable:True
           /// </summary>           
           public string coutsign {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutno_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? doutdate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutbillsign {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string coutid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bvouchedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bvouchedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bvouchAddordele_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bvouchAddordele {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bvouchmoneyhold_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bvouchmoneyhold {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bvalueedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bvalueedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bcodeedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bcodeedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccodecontrol {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bPCSedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bPCSedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bDeptedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bDeptedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bItemedit_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bItemedit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CREATE DEFAULT dbo.GL_accvouch_bCusSupInput_D AS 0
           /// Nullable:True
           /// </summary>           
           public bool? bCusSupInput {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine1 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine2 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine3 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? cDefine4 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? cDefine5 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? cDefine6 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? cDefine7 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine8 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine9 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine10 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine11 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine12 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine13 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cDefine14 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? cDefine15 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public double? cDefine16 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:null
           /// Nullable:True
           /// </summary>           
           public DateTime? dReceive {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cWLDZFlag {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? dWLDZTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public bool bFlagOut {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? iBG_OverFlag {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cBG_Auditor {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? dBG_AuditTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cBG_AuditOpinion {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? bWH_BgFlag {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? ssxznum {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string CErrReason {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BG_AuditRemark {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cBudgetBuffer {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? iBG_ControlResult {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string NCVouchID {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? daudit_date {get;set;}

           /// <summary>
           /// Desc:
           /// Default:newid()
           /// Nullable:False
           /// </summary>           
           public string RowGuid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cBankReconNo {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int iyear {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? iYPeriod {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? wllqDate {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? wllqPeriod {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? tvouchtime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string cblueoutno_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ccodeexch_equal {get;set;}

        ///// <summary>
        ///// Desc: 12.0 版本没有
        ///// Default:
        ///// Nullable:True
        ///// </summary>           
        //public string cpzchcode {get;set;}

        ///// <summary>
        ///// Desc:12.0 版本没有
        ///// Default:0
        ///// Nullable:False
        ///// </summary>           
        //public double iprice {get;set;}

    }
}
